const HtmlWebpackPlugin = require('html-webpack-plugin')

module.exports = {
  //   entry: ['./src/index.js', './src/add.js'],//打包成单个js,适用于比如react全家桶
  entry: { index: './src/index.js', add: './src/add.js' }, //打包成多个js
  output: {
    filename: '[name].js',
    path: `${__dirname}/build`,
  },

  plugins: [new HtmlWebpackPlugin()],
  mode: 'development',
}
